package com.sjp.demo.rpc.model;

import lombok.Data;

import java.io.Serializable;

@Data
public class RpcRequest implements Serializable {
    private String className;
    private String methodName;
    private Object[] params;
    private String version;

    public String getServiceName() {
        if (version == null) {
            return className;
        }
        return className + version;
    }
}
